package com.me.dao.builder;

import java.math.BigDecimal;

import com.me.dao.entity.LyPeopleModel;

/**
 * 功能：
 *
 * @author：dongshibo(F_baisi)
 * @create：2019/1/24/024 11:50
 * @version：2019 Version：1.0
 * @company：老屋新房 Created with IntelliJ IDEA
 */
public class LyPeopleModelBuilder extends LyPeopleModel {
	private static final String Ly_NAME = "刘洋";//名称
	private static final Integer Ly_AGE = 21;//年龄
	private static final String Ly_LIKE = "show";//爱好
	private static final Integer Ly_SEX = 1;//性别 男
	private static final Double Ly_PRICE = 10d;//身价

	public LyPeopleModelBuilder() {
		this.age=Ly_AGE;
		this.name=Ly_NAME;
		this.like=Ly_LIKE;
		this.price=new BigDecimal(Ly_PRICE);
		this.sex=Ly_SEX;
	}

	public LyPeopleModelBuilder(String like) {
		super(like);
	}

	public LyPeopleModelBuilder(Integer sex, BigDecimal price, String like) {
		super(sex, price, like);
	}

	public LyPeopleModelBuilder(String name, Integer age, Integer sex, BigDecimal price, String like) {
		super(name, age, sex, price, like);
	}

	@Override
	public String toString() {
		return "LyPeopleModelBuilder{" +
				"like='" + like + '\'' +
				", sex=" + sex +
				", price=" + price +
				", name='" + name + '\'' +
				", age=" + age +
				'}';
	}
}
